package com.dmap.run.bo;

import com.dmap.run.po.SwimRecord;

import java.io.Serializable;

/**
 * \* User: silent
 * \* Date: 08/06/18 Time: 下午 02:04
 * \* Description:
 * \
 */
public class SwimRecordSimple implements Serializable {

    private static final long serialVersionUID = -3712457642017703143L;
    private Long startTime;           //开始时间
    private Integer calorie;          //消耗卡路里
    private Integer timeTotal;        //消耗时间
    private Integer type;             //数据来源 1:手机,2:手表
    private Integer strokeNumber;     //划水次数
    private Integer strokeRate;       //划水频率
    private Long swimRecordId;

    public SwimRecordSimple() {
    }

    public SwimRecordSimple(SwimRecord record) {
        startTime = record.getStartTime();
        calorie = record.getCalorie();
        timeTotal = record.getTimeTotal();
        type = record.getDataSource();
        strokeNumber = record.getStrokeNumber();
        strokeRate = record.getStrokeRate();
        swimRecordId = record.getId();
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Integer getCalorie() {
        return calorie;
    }

    public void setCalorie(Integer calorie) {
        this.calorie = calorie;
    }

    public Integer getTimeTotal() {
        return timeTotal;
    }

    public void setTimeTotal(Integer timeTotal) {
        this.timeTotal = timeTotal;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getStrokeNumber() {
        return strokeNumber;
    }

    public void setStrokeNumber(Integer strokeNumber) {
        this.strokeNumber = strokeNumber;
    }

    public Integer getStrokeRate() {
        return strokeRate;
    }

    public void setStrokeRate(Integer strokeRate) {
        this.strokeRate = strokeRate;
    }

    public Long getSwimRecordId() {
        return swimRecordId;
    }

    public void setSwimRecordId(Long swimRecordId) {
        this.swimRecordId = swimRecordId;
    }
}
